<table class="table table-striped goods_list_table   table-bordered">
    <thead>
        <tr>
            <th class="opth100">采购单名称</th>
            <th class="opth100">供应商联系人</th>
            <th class="opth100">商品名</th>
        	<th class="opth100">报价数量</th>
        	<th class="opth100">报价价格</th>
        	<th class="opth100">送货时间</th>
        	<th class="opth70">是否批次送货</th>
            <th class="opth70">是否处理</th>
            <th class="opth70">是否确认</th>
            <th class="opth70">是否有效</th>
            <th class="opth70">交易状态</th>
            <th class="opth70">操作时间</th>
            <th class="opth70">操作</th>
        </tr>
    </thead>
    <tbody id="tbodylist">
        <volist name="_datalist['lists']" id="g">
            <tr>
            	<td>{$g['purchaseame']}</td>
                 <td>{$g['linkname']}</td>
                 <td>{$g['goodsname']}</td>
                <td>{$g['offer_number']}</td>
                <td>{$g['offer_price']}</td>
                <td>{$g['sendtime']}</td>
                <td>{$g['isbatch']==1?'是':'否'}</td>
                <td>{$g['ishandle']==1?'是':'否'}</td>
                <td>{$g['iscomfirm']==1?'确认':'没有'}</td>
                <td>{$arr2[$g['isactive']]}</td>
                <td>{$arr[$g['check']]}</td>
                <td>{$g['createtime']}</td>
                <td><a href="javascript:;" url="{:U('add_approval',array('purchaseame'=>$g['purchaseame'],'offerid'=>$g['offerid']))}" class="add_edit_id" >审核</a>
                </td>
            </tr>
        </volist>

    </tbody>
</table>
<notempty name="_datalist['lists']">
  <div class="page_list_ops dataTables_paginate paging_bootstrap pagination">
    {$_datalist['page_html']}
 </div>	

</notempty>
<script type="text/javascript">
$(function(){
  $(".add_edit_id").bind("click",function(){
   var url = $(this).attr('url');
   fnadd(url);

  }); 
  function  fnadd(url){

    /*var url="{:U('add_approval')}";*/
    title="报价单审核";  
    var mydialog=art.dialog.open(url,{title:title, width:'1200px', height:'80%', opacity: 0.2 
     /* ok: function () { 
            this.close();
            return false;
        },
        okVal:'审核',
        cancelVal: '取消',
        cancel: function(){this.close();}  */ 
  });  
 }
 })


</script>
